package com.capgemini.remind.service;

import com.capgemini.core.PageList;
import com.capgemini.remind.mapper.AnnouncementSendInfoMapper;
import com.capgemini.remind.pojo.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @author
 * @date
 */
@Service
@Transactional
public class AnnouncementSendInfoService {
    public final Logger log = LoggerFactory.getLogger(this.getClass());

    @Autowired
    private AnnouncementSendInfoMapper announcementSendInfoMapper;

    public void queryPage(final PageList<AnnouncementSendInfo> pageList) {
        pageList.setItems(announcementSendInfoMapper.queryPage(pageList));
    }

    public int batchInsert(List<AnnouncementSendInfo> list) {

        return announcementSendInfoMapper.batchInsert(list);
    }

}
